package com.uam.web.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Administrator
 */
@ApiModel(value = "基站统计信息")
@Data
public class CectorCount {

    @ApiModelProperty(value = "  " +
            "  1:通信技术\n" +
            "  2:导航技术\n" +
            "  3:监视技术")
    private int type ;


    @ApiModelProperty(value = "开启数量")
    private int openNum =0;

    @ApiModelProperty(value = "关闭数量")
    private int closeNum=0;

    @ApiModelProperty(value = "总数量")
    private int count=0;

    public CectorCount(int type) {
        this.type = type;
    }

    public void setDataCloseNum(){
        this.closeNum=this.closeNum+1;
        this.addCount();
    }

    public void setDataOpenNum(){
        this.openNum=this.openNum+1;
        this.addCount();
    }

    public void addCount(){
        this.count=this.closeNum+this.openNum;
    }
}
